package com.key.modules.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.key.modules.cache.MybatisCache;
import com.key.modules.dto.CustomerDTO;
import com.key.modules.entity.CustomerContract;
import com.key.modules.vo.CustomerVO;
import org.apache.ibatis.annotations.CacheNamespace;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
@CacheNamespace(implementation = MybatisCache.class,eviction= MybatisCache.class)
public interface CustomerContractMapper extends BaseMapper<CustomerContract> {
    Page<CustomerVO> selectCustomerContractByDTO(@Param("page") Page<CustomerVO> page, @Param("customerDTO") CustomerDTO customerDTO);

    CustomerContract selectCustomerById(Integer id);
}
